public class Test {
    float ptValue;
    public void changeInt(int value) {
        value = 11;
    }
    public void changeStr(String value) {
        value = new String("hey");
    }
    public void changeObjValue(Test ref) {
        ref.ptValue = 22;
    }
    public static void main(String args[]) {
        String str;
        int val;
        Test pt = new Test();
        val = 33;
        pt.changeInt(val);
        System.out.println("Int value is：" + val);
        str = new String("Hi");
        pt.changeStr(str);
        System.out.println("Str value is：" + str);
        pt.ptValue = 44;
        pt.changeObjValue(pt);
        System.out.println("Pt value is: " + pt.ptValue);
    }
}